package com.yuanfeng.activity.controller;

import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @ClassName ActivityNoneTypeController
 * @Description
 * @Author hyq
 * @Date 2023/7/6 13:49
 * @Version 1.0
 **/
@RestController
@RequestMapping("activity/noneType")
public class ActivityNoneTypeController extends BaseController{

    /**
     * 查询活动专区类型
     *
     * @param
     * @return
     */
    @PostMapping("/query")
    public ResponseResult queryActivityNoneType() {
        ResponseResult result=activityNoneTypeService.queryActivityNoneType();
        return result;
    }

    /**
     * 编辑专区类型
     *
     * @return
     */
    @PostMapping("/update")
    public ResponseResult updateNoneType(@RequestBody Map<String, Object> param) {
        ResponseResult result=activityNoneTypeService.updateNoneType(param);
        return result;
    }

    /**
     * 查询可以添加活动的专区
     * @return
     */
    @PostMapping("/select")
    public ResponseResult selectNotJoinType() {
        ResponseResult result=activityNoneTypeService.selectNotJoinType();
        return result;
    }

}
